const express = require('express');
const database = require("./database");

const app = express();
app.get('/', function(req, res) {
    res.send('Hello World')
});
app.get("/connect", function(req, res) {
    const dbName = req.query.dbName;
    database.connect(dbName);
})


module.exports = app;